package ${basePkg}.${beanName}.mapper;
import com.github.pagehelper.Page;

import com.wenzheng.module.common.mapper.CommonMapper;

import ${basePkg}.${beanName}.entity.${BeanName};
import com.wenzheng.workflow.tools.ActionValues;

import com.wenzheng.workflow.tools.ResultValues;

import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Delete;

/**
 * ${tabComment} 常用操作
 * @author zyt
 *
 */
public interface ${BeanName}Mapper{

  @Select("select * from ${tableName} where ${priKey}=<#noparse>#{id}</#noparse>")
   
  public ${BeanName} get(${priKeyType} id);

   

  public Page<ResultValues> list(ActionValues values);
    

  @Delete("delete from ${tableName} where ${priKey}=<#noparse>#{id}</#noparse>")
  int delete(${priKeyType} id);

  int add${BeanName}(${BeanName} ${beanName});

  int update${BeanName}(${BeanName} ${beanName});
}